package com.hncu.stringbuilder;

public class Demo1 {
    public static void main(String[] args) {
        StringBuilder sb1 = new StringBuilder();//无参构造一个空白可变字符串对象
        System.out.println("sb1:"+sb1);
        System.out.println("sb1.length:"+sb1.length());
        System.out.println("-------------------");
        StringBuilder sb2 = new StringBuilder("abcde");//有参构造一个有内容的可变字符串对象
        System.out.println("sb2:"+sb2);
        System.out.println("sb2.length:"+sb2.length());
    }
}
